package gui;

import java.awt.Color;

import javax.swing.JLabel;



/**
 * @author aioros
 * 
 * JLabel which contains packages descriptions (singleton)
 */
public class DescriptionJLabel extends JLabel {

/*-------------------- Fields ------------------------*/
	
	private static final long serialVersionUID = 1778890L;
	
	/**
	 * the single object DescriptionJLabel
	 */
	private static DescriptionJLabel descriptionJLabel = new DescriptionJLabel();
	
	
	
	/*-------------------- Constructor ------------------------*/

	/**
	 * the constructor is private in order to create a singleton
	 */
	private DescriptionJLabel() {
		super();
		
		this.initialize();
	}
	
	
	
	/*-------------------- Methodes ------------------------*/
	
	/**
	 * initialize the properties JLabel
	 */
	private void initialize(){
		
		this.setBackground(Color.WHITE);
		this.setOpaque(true);
		this.setHorizontalAlignment(JLabel.CENTER);
		this.setText("<html> <h1> no release selected </h1> </html>");
	}

	
	/**
	 * @return the single object DescriptionJLabel
	 */
	public static DescriptionJLabel getDescriptionJLabel(){
		
		return descriptionJLabel;
	}
	
}
